package com.zjs.entity.sql;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sql_order_item")
@ApiModel(value = "OrderItem对象", description = "订单项表")
public class OrderItem implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("订单项ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("所属订单ID")
    private Integer orderId;

    @ApiModelProperty("所属门票ID")
    private Integer ticketId;

    @ApiModelProperty("数量")
    private Integer quantity;

    @ApiModelProperty("总价")
    private BigDecimal totalPrice;
}
